FROM harbor.yunzhicloud.com:3443/library/openjdk:8-jdk
LABEL maintainer=lichengjun
ENV PARAMS="-Dfile.encoding=utf8 -Djava.security.egd=file:/dev/./urandom -jar app.jar"
ENV SKYWALKING_AGENT_OPTIONS=""
ENV YZ_MODE="dev"
ENV NACOS_OPTIONS=""
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
COPY target/*.jar /app.jar
EXPOSE 8080
ENTRYPOINT ["/bin/bash","-c","java ${PARAMS} ${SKYWALKING_AGENT_OPTIONS} --spring.profiles.active=${YZ_MODE} ${NACOS_OPTIONS}"]